package com.qijian.maindata.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qijian.maindata.domain.CustomerComplaintsProject;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * 客户投诉问题Mapper接口
 *
 * @author qijian
 * @date 2024-09-09
 */
public interface CustomerComplaintsProjectMapper extends BaseMapper<CustomerComplaintsProject> {

    @Select("select count(0) from main_customer_complaints_project WHERE create_time >= CURRENT_DATE ")
    int countCurrentDateWithDel();

    @Update("delete from main_customer_complaints_project  where main_id = #{mainId}")
    void removeByMainId(@Param("mainId") Long mainId);
}
